package com.jzo2o.customer.controller.agency;

import com.jzo2o.common.model.Result;
import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IserveRegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 机构注册服务
 *
 * @Author mr.zhang
 * Date 2025/7/1 11:51
 */
@RestController
@RequestMapping("customer/open/serve-provider/institution")
@Api(tags = "机构注册")
public class ServeRegisterContrller {
    @Autowired
    private IserveRegisterService iserveRegisterService;

    @PostMapping("/register")
    @ApiOperation(value = "机构注册接口")
    public Result register(@RequestBody InstitutionRegisterReqDTO dto){
        iserveRegisterService.register(dto);

        return Result.ok();
    }
}
